package com.example.shengyin.service;


import com.example.shengyin.entity.Job;
import com.example.shengyin.entity.Page;
import org.apache.ibatis.annotations.Param;

public interface JobService {


    Job selectById(@Param("id") Integer id);

    int insert(Job job);

    int update(Job job);

    int deleteById(@Param("id") Integer id);

    int deleteByIds(@Param("ids") String ids);

//    List<Job> jobList(@Param("page")int page, @Param("limit")int limit, @Param("jobtitle") String jobtitle, @Param("pos") String pos,
//                      @Param("jobtype") String jobtype, @Param("pt")String pt);

    int countTotall(@Param("jobtitle") String jobtitle, @Param("pos") String pos,
              @Param("jobtype") String jobtype, @Param("pt")String pt);

    Job selResumeByJobId(@Param("id")Integer id);

     Page jobList(@Param("page")int page2, @Param("limit")int limit, @Param("jobtitle") String jobtitle, @Param("pos") String pos,
                      @Param("jobtype") String jobtype, @Param("pt")String pt);

//    Page<Job> JobPage(@Param("jobtitle") String jobtitle, @Param("pos") String pos, @Param("jobtype") String jobtype, @Param("start") Date start, @Param("end") Date end, @Param("pageNo") int pageNo,
//                      @Param("pageSize") int pageSize);
//
//    int findTotal(@Param("jobtitle") String jobtitle, @Param("pos") String pos, @Param("jobtype") String jobtype, @Param("start") Date start, @Param("end") Date end);

}
